/*
 * Created on 02/05/2005
 *
 */
package tests.model;

import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * @author Bajales Raul
 *
 */
public class User {
    
    private String id; 
    private String name;
    
    /**
     * Constructor
     */
    public User() {
        super();
    }

    /**
     * @param id
     * @param name
     */
    public User(String id, String name) {
        super();
        this.id = id;
        this.name = name;
    }

    /**
     * @return Returns the id.
     */
    public String getId() {
        return id;
    }
    
    /**
     * @param id The id to set.
     */
    public void setId(String id) {
        this.id = id;
    }
    
    /**
     * @return Returns the name.
     */
    public String getName() {
        return name;
    }
    
    /**
     * @param name The name to set.
     */
    public void setName(String name) {
        this.name = name;
    }

    /* (non-Javadoc)
     * @see ar.com.rab.beancipher.spi.IBeanId#getNoVolatileId()
     */
    public String getNoVolatileId() {
        return this.id;
    }
    
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
